home *** CD-ROM | disk | FTP | other *** search
- On 27-May-97, Branko Collin wrote:
- >>No problem, but do you actually want me to display the score
- >>and lives? The easiest way to do that would be using bobs,
- >>so they would have to use the same palette as those used by the
- >>bobs in each section of the game, and that would be nasty.
- >I have a proc in the Procedure Library on Aminet that will calculate the
- >brightest, mid brightest and least brightest colour on a screen. This is
- >specifically for cases like this, where you need to allocate contrasting
- >colours without knowing what they are beforehand.
- >Will all modules have scores and lives? If so, will those scores be within a
- >uniform range (you cannot have one module giving a maximum score of 100 and
- >another one a score of 100,000,000.
-
- Well, the score will be carried from one stage to another, as will lives, so
- yes.
-
- >If you want to be sure about the display, just open your own screen. Reserve
- >screen 7 for hi-scores. Then tell everyone that they have a statusline of X
- >characters wide that they can send data to. Give the proc that receives this
- >data a standard name (STATUS[DETA$]).
-
- That seems best, Rob. Open a screen 640x12 or whatever you need. Have a
- procedure to call your score update and make sure the position of the screen
- can be defined.
-
- Procedure SCORE[SCOREY]
-
- Remember, both lives and score are gloabal, so you don't need to pass them in.
-
- Well met and godspeed,
- Giark
- joehick@golden.net
- http://www.golden.net/~joehick/fbn/index.html
- ______ ______ _____ .------------------------------------------.
- / ____/ / __ / / ___ \ ! AMOS games, utilities, demos, etc. !
- / /__ / /_/ / / / / / ! !
- / ___/ / ___ | / / / / ! CyberSpace BBS (519)579-0072 !
- / / / /__/ / / / / / ! on A2000 060/50MHz (519)579-0173 !
- /_/ /______/ /_/ /_/ ! !
- Fly By Nite Videe-Oh! ! FBN Amiga 500 020 14MHz 1C/5F RAM 3.1OS !
- `------------------------------------------'
-
-
-